package org.zsk.cfl.authagency;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 授权代办人员节点
 * @author zsk
 * 1/9/21 11:16 AM
 */
@Data
@AllArgsConstructor
public class AuthAgencyNode {
    /**
     * 授权人或被授权人uuid
     */
    private String uuid;

    @Override
    public int hashCode() {
        return uuid.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof AuthAgencyNode)){
            return false;
        }
        AuthAgencyNode authAgencyNode= (AuthAgencyNode) obj;
        if (this==authAgencyNode){
            return true;
        }
        return authAgencyNode.uuid.equals(this.uuid);
    }
}
